package com.wxs.comtroller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class ResultMVC {


    @RequestMapping("/rsm/t1")
    public String test(){

        /*转发*/
        return "/index.jsp";
    }

    @RequestMapping("/rsm/t2")
    public String test2(){

        /*转发*/
        return "forward:/index.jsp";
    }

    @RequestMapping("/rsm/t3")
    public String test3(){

        /*重定向*/
        return "redirect:/index.jsp";
    }

}
